package zxs.sino.elite.hub.service.app.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.yulichang.base.MPJBaseServiceImpl;
import zxs.sino.elite.hub.utils.PageUtil;
import zxs.sino.elite.hub.utils.Query;

import zxs.sino.elite.hub.mapper.app.UserWalletMapper;
import zxs.sino.elite.hub.model.app.UserWalletEntity;
import zxs.sino.elite.hub.service.app.UserWalletService;


@Service("userWalletService")
public class UserWalletServiceImpl extends MPJBaseServiceImpl<UserWalletMapper, UserWalletEntity> implements UserWalletService {

    @Override
    public PageUtil queryPage(Map<String, Object> params) {
        IPage<UserWalletEntity> page = this.page(
                new Query<UserWalletEntity>().getPage(params),
                new QueryWrapper<UserWalletEntity>()
        );

        return new PageUtil(page);
    }

}